//1.装包
import VueRouter from 'vue-router'

//2.导入组件对象
import Find from '../views/Find.vue'
import My from '../views/My.vue'
import Part from '../views/Part.vue'

//引入
import Vue from 'vue'

//3.安装插件
Vue.use(VueRouter)

//4.创建路由对象
const router = new VueRouter({
    routes: [
        {
            path: '/find',
            component: Find
        },
        {
            path: '/My',
            component: My
        },
        {
            path: '/Part',
            component: Part
        },
    ]
})

export default router